<h1>Editing contact</h1>

<%= error_messages_for :contact %>

<% form_for(:contact, :url => contact_path(@contact), :html => { :method => :put }) do |f| %>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', contact_path(@contact) %> |
<%= link_to 'Back', contacts_path %>